package com.yetm.springbootdemo.service.impl;

import com.yetm.springbootdemo.dao.UserMapper;
import com.yetm.springbootdemo.entity.User;
import com.yetm.springbootdemo.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getUser(String id) {
        return userMapper.selectById(id);
    }
}
